﻿namespace PMS.Client
{
    using PMS.Client.Properties;
    using PMS.Common;
    using System;
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms;

    public class FrmVersion : Form
    {
        private IContainer components = null;
        private Label lbUpdateDate;
        private Label lbVersion;

        public FrmVersion()
        {
            this.InitializeComponent();
            this.lbVersion.Text = this.lbVersion.Text + " v" + Config.Version;
            this.lbUpdateDate.Text = this.lbUpdateDate.Text + "  " + Config.UpdateDate;
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void FrmVersion_Click(object sender, EventArgs e)
        {
            base.Close();
        }

        private void InitializeComponent()
        {
            this.lbVersion = new Label();
            this.lbUpdateDate = new Label();
            base.SuspendLayout();
            this.lbVersion.BackColor = Color.Transparent;
            this.lbVersion.Dock = DockStyle.Top;
            this.lbVersion.Font = new Font("宋体", 24f, FontStyle.Bold, GraphicsUnit.Point, 0x86);
            this.lbVersion.Location = new Point(0, 0);
            this.lbVersion.Name = "lbVersion";
            this.lbVersion.Size = new Size(0x177, 0x51);
            this.lbVersion.TabIndex = 0;
            this.lbVersion.Text = "人事管理系统";
            this.lbVersion.TextAlign = ContentAlignment.BottomCenter;
            this.lbVersion.Click += new EventHandler(this.FrmVersion_Click);
            this.lbUpdateDate.BackColor = Color.Transparent;
            this.lbUpdateDate.Dock = DockStyle.Top;
            this.lbUpdateDate.Font = new Font("宋体", 10.5f, FontStyle.Regular, GraphicsUnit.Point, 0x86);
            this.lbUpdateDate.Location = new Point(0, 0x51);
            this.lbUpdateDate.Name = "lbUpdateDate";
            this.lbUpdateDate.Size = new Size(0x177, 0x1f);
            this.lbUpdateDate.TabIndex = 1;
            this.lbUpdateDate.Text = "更新时间";
            this.lbUpdateDate.TextAlign = ContentAlignment.BottomCenter;
            this.lbUpdateDate.Click += new EventHandler(this.FrmVersion_Click);
            base.AutoScaleDimensions = new SizeF(6f, 12f);
            base.AutoScaleMode = AutoScaleMode.Font;
            this.BackgroundImage = Resources.version_bg;
            base.ClientSize = new Size(0x177, 0xaf);
            base.Controls.Add(this.lbUpdateDate);
            base.Controls.Add(this.lbVersion);
            base.FormBorderStyle = FormBorderStyle.None;
            base.Name = "FrmVersion";
            base.StartPosition = FormStartPosition.CenterScreen;
            this.Text = "FrmVersion";
            base.Click += new EventHandler(this.FrmVersion_Click);
            base.ResumeLayout(false);
        }
    }
}

